package com.colin.app.activity.city;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.colin.app.R;
import com.colin.app.app.AppActivity;

public class CityActivity extends AppActivity implements CityContract.CityView {
    private CityContract.CityPresenter mCityPresenter = null;
    private RecyclerView recycler_city ;
    @Override
    protected void onDestroy() {
        if (null != mCityPresenter) {
            mCityPresenter.destroy();
            mCityPresenter = null;
        }
        super.onDestroy();
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public int initViewLayoutID() {
        return R.layout.activity_city;
    }

    @Override
    public void initView() {
        this.recycler_city = (RecyclerView) this.findViewById(R.id.recycler_city);
        initRecyclerView();
    }

    private void initRecyclerView() {
        this.recycler_city.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.VERTICAL,false));
    }
}
